/*
 * @(#)Properties.java
 * Copyright 2011 TravelSky Technology Ltd. All Right Reserved. 
 */
package com.meetingshow.utils;

/**
 * @author louyi
 *
 */
public class Properties {
	private java.util.Properties config;
	
	Properties(String fileName) throws Exception {
		config = new java.util.Properties();
		config.load(Properties.class.getClassLoader().getResourceAsStream(fileName));
	}
	
	public String getValue(String key) {
		String value = null;
		if (config != null) {
			value = config.getProperty(key);
			if (value != null)
				value = value.trim();
		}
		return value;
	}
}
